package com.jy.appmarket.network.engine;

import java.util.Map;

import android.content.Context;

import com.jy.appmarket.network.engine.BaseNetEngine;
import com.jy.appmarket.network.resultdata.ModifyPasswdResult;

public class ModifyPasswdNetEngine extends BaseNetEngine{
	private String mPhoneNum;
	private String mOldPasswd;
	private String mNewPasswd;
	
	public ModifyPasswdNetEngine(String phoneNum, String oldPasswd, String newPasswd) {
		mResultData = new ModifyPasswdResult();
		mHttpMethod = HTTP_POST;
		mPhoneNum = phoneNum;
		mOldPasswd = oldPasswd;
		mNewPasswd = newPasswd;
	}

	@Override
	protected String getCommand() {
		return "modify_password";
	}
	
	@Override
	protected void postParams(Context context, Map<String, String> params) {
		params.put("phoneNum", mPhoneNum);
		params.put("oldPassword", mOldPasswd);
		params.put("newPassword", mNewPasswd);
	}
}
